<?php
	include "Controls/ArticleTable.php";
	include "Model/Article.php";
	
	$page = $_REQUEST['page'];
	if (is_null($page)) { $page = "1"; }
	
	$action = $_REQUEST['action'];
	if ($action == "next") {$page++;}
	else if ($action == "back") {$page--;}
	
	$nOfPages = 1;
	//$items = Article::GetFeaturedArticles(null, $page, $nOfPages);
	$items = array(Article::WithParams("cose", "cose", "1.jpg"), Article::WithParams("lulu", "cose", "2.jpg"));
	
	$table = new ArticleTable("Featured Items", $items, $page, $nOfPages);
	$table->GetTable();
?>
